package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author lsw
 * @time 2022/6/16 15:22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "matching_rule")
public class MatchingRule extends PublicPo{

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "业务对象")
    @TableField("business_object")
    private String businessObject;
    @ApiModelProperty(value = "属性")
    @TableField("attribute")
    private String attribute;
    @TableField("cus_field")
    private String cusField;
    @TableField("state")
    @ApiModelProperty(value = "0/1 已生效/未生效")
    private Integer state;

    @TableField(exist = false)
    private Integer fieldId;
    @TableField(exist = false)
    private String fieldType;
    @TableField(exist = false)
    private List<MatchingRule> matchingRules;
    @TableField(exist = false)
    private List<DimensionCombination> dimensionCombinations;
    @TableField(exist = false)
    private CustomField customFieldMess;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private List<String> list;

    @TableField(exist = false)
    private Integer type;

}
